<?php
// +----------------------------------------------------------------------
// | Iecms [ Make the most exquisite CMS ]
// +----------------------------------------------------------------------
// | Copyright (c) 2009~2019 http://www.iemoo.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: iemoo <i@iemoo.com>
// +----------------------------------------------------------------------
// | DateTime: 2019/11/19 11:08
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;

/**
 * 验证器
 * @package app\admin\validate
 */
class Archives extends Validate
{
    protected $rule = [
		'category_id'	=> 'require|number',
        'title'		=> 'require|max:200',
        'status'	=> 'require|in:0,1'
    ];

    protected $message = [
		'category_id.require'		=> '请选择栏目',
		'category_id.number'		=> '栏目不正确',
        'title.require'			=> '请输入标题',
		'title.max'				=> '标题过长',
        'status.require'		=> '请选择状态',
		'status.in'			=> '状态不正确'
    ];

}